#ifndef _TOOLCONFIGFILE_H
#define _TOOLCONFIGFILE_H

#ifdef SECUREAUTOBACKUP_EXPORTS
#define SECUREAUTOBACKUP_API __declspec(dllexport)
#else
#define SECUREAUTOBACKUP_API __declspec(dllimport)
#endif

#define FILE_LIST_START_LINE 10

#include <list>

extern "C" {

SECUREAUTOBACKUP_API CString ReadLineN(LPCTSTR fileName, int n);
SECUREAUTOBACKUP_API CString LoadProjectName(LPCTSTR fileName);
SECUREAUTOBACKUP_API CString LoadFullBackupPath(LPCTSTR fileName);
SECUREAUTOBACKUP_API CString LoadIncBackupPath(LPCTSTR fileName);
SECUREAUTOBACKUP_API CString LoadDifBackupPath(LPCTSTR fileName);
SECUREAUTOBACKUP_API CString LoadDifincBackupPath(LPCTSTR fileName);
SECUREAUTOBACKUP_API int LoadAutoCycle(LPCTSTR fileName);
SECUREAUTOBACKUP_API int LoadAutoHour(LPCTSTR fileName);
SECUREAUTOBACKUP_API int LoadAutoMin(LPCTSTR fileName);
SECUREAUTOBACKUP_API int LoadIsAutoBackupOnce(LPCTSTR fileName);

SECUREAUTOBACKUP_API BOOL SaveConfigFile(LPCTSTR fileName, 
					CString projectName,
					CString path1, CString path2, CString path3, CString path4,
					int autoCycle, int autoHour, int autMin, bool isAutoBackupOnce,
					std::list<CString> fileList);
SECUREAUTOBACKUP_API BOOL IsCorrectPath(CString path);
SECUREAUTOBACKUP_API BOOL IsCorrectPath2(CString path1, CString path2, CString path3, CString path4);

}

#endif